package com.bdqn.ch11;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
public class Md5Tester {

    @Test
    public void testMd5Hash() {
        String password = "admin";
        String salt = "czkt";
        Md5Hash md5Hash = new Md5Hash(password, salt,2);
        System.out.println(md5Hash.toString());
        //输出：36aa3e095a86925b7658b5d00557fa77   1次
        //输出：2f508ee63a8992010e8d02d5f2898411   2次
    }
}
